Skip to content

feat: add MCP server endpoint for AI doc access#30

Merged
Equious merged 3 commits intomainfrom
feat/add-mcp-server
Apr 14, 2026
Merged

feat: add MCP server endpoint for AI doc access#30
Equious merged 3 commits intomainfrom
feat/add-mcp-server

Conversation

@Equious
Copy link
Copy Markdown
Collaborator

@Equious Equious commented Apr 14, 2026

Summary

  • Adds a Streamable HTTP MCP server at /api/mcp so AI tools (Claude Desktop, Claude Code, etc.) can programmatically search and read the docs
  • Exposes three tools: search_docs, read_page, list_pages
  • Updates the "How to Use AI with BattleChain Docs" page with MCP setup instructions
  • Mirrors the pattern used by Tempo

Resolves BAT-134

Test plan

  • npm run build passes
  • POST /api/mcp responds to MCP initialize and tools/list requests
  • search_docs returns relevant results
  • read_page returns clean markdown for a valid path
  • list_pages returns all doc pages
  • Verify MCP connection from Claude Code: claude mcp add battlechain-docs https://docs.battlechain.com/api/mcp

🤖 Generated with Claude Code

Equious and others added 2 commits April 14, 2026 11:04
Adds a Streamable HTTP MCP server at /api/mcp so AI tools like Claude
Desktop and Claude Code can programmatically search and read the docs.
Mirrors the pattern used by Tempo (docs.tempo.xyz/api/mcp).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 14, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs-battlechain Ready Ready Preview, Comment Apr 14, 2026 6:15pm

Request Review

The previous commit deleted package-lock.json (needed by GitHub Actions
CI) and regenerated pnpm-lock.yaml from scratch which resolved deps to
wrong versions. This restores both lockfiles with minimal changes —
only adding @modelcontextprotocol/sdk and zod.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Equious Equious merged commit 911d8b6 into main Apr 14, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant